package com.seculab.common.domain;

import java.io.Serializable;
import java.sql.Date;

import com.seculab.common.util.CustomPaginationInfo;

public class BaseObject implements Serializable {
	private static final long serialVersionUID = 5098465036602495707L;
	private String reg_id;
	private Date reg_date;
	private String upd_id;
	private Date upd_date;
	
	private int pageNo = 1;
	private int firstIndex;
	private int lastIndex;
	private CustomPaginationInfo customPaginationInfo;
	
	public CustomPaginationInfo getCustomPaginationInfo() {
		return customPaginationInfo;
	}
	
	public void setCustomPaginationInfo(CustomPaginationInfo customPaginationInfo) {
		this.customPaginationInfo = customPaginationInfo;
		this.customPaginationInfo.setCurrentPageNo(this.pageNo);
		this.customPaginationInfo.setRecordCountPerPage(5);
		this.customPaginationInfo.setPageSize(10);
		this.firstIndex = this.customPaginationInfo.getFirstRecordIndex();
		this.lastIndex = this.customPaginationInfo.getLastRecordIndex();
	}	
	
	public int getPageNo() {
		return pageNo;
	}
	public void setPageNo(int pageNo) {
		this.pageNo = pageNo;
	}
	public String getReg_id() {
		return reg_id;
	}
	public void setReg_id(String reg_id) {
		this.reg_id = reg_id;
	}
	public Date getReg_date() {
		return reg_date;
	}
	public void setReg_date(Date reg_date) {
		this.reg_date = reg_date;
	}
	public String getUpd_id() {
		return upd_id;
	}
	public void setUpd_id(String upd_id) {
		this.upd_id = upd_id;
	}
	public Date getUpd_date() {
		return upd_date;
	}
	public void setUpd_date(Date upd_date) {
		this.upd_date = upd_date;
	}
	public int getFirstIndex() {
		return firstIndex;
	}
	public void setFirstIndex(int firstIndex) {
		this.firstIndex = firstIndex;
	}
	public int getLastIndex() {
		return lastIndex;
	}
	public void setLastIndex(int lastIndex) {
		this.lastIndex = lastIndex;
	}
	
}
